package com.yuma.strategy;

import org.springframework.util.DigestUtils;

@MyAlgorithm
public class Md5 implements Algorithm{
    @Override
    public String encrypt(String encryptText) {
        return "md5:" + DigestUtils.md5DigestAsHex(encryptText.getBytes());
    }
}
